/* App.css */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: url('@/assets/images/shouyebeij.jpg') no-repeat center center fixed;
  background-size: cover;
  position: relative;
}

.cardContainer {
  position: relative;
  width: 800px;
  min-height: 500px;
  display: flex;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.formsContainer {
  position: absolute;
  width: 200%;
  height: 100%;
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.formSection {
  width: 50%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.switchContainer {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  overflow: hidden;
  transition: transform 0.6s ease-in-out;
}

.switchPanel {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 40px;
  text-align: center;
  top: 0;
  height: 100%;
  width: 200%;
  transform: translateX(-50%);
  transition: transform 0.6s ease-in-out;
  background: transparent;
}

.title {
  font-size: 24px;
  color: #fff;
  margin-bottom: 16px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.input {
  width: 100%;
  max-width: 300px;
  margin-bottom: 16px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;

  &::placeholder {
    color: rgba(255, 255, 255, 0.7);
  }

  &:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
  }
}

.button {
  width: 100%;
  max-width: 300px;
  height: 40px;
  background: linear-gradient(to right, #0052D4, #4364F7, #6FB1FC);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.3s ease;

  &:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 82, 212, 0.3);
  }

  &:active {
    transform: translateY(1px);
  }
}

.switchButton {
  background: transparent;
  border: 1px solid #fff;

  &:hover {
    background: rgba(255, 255, 255, 0.1);
  }
}

// 添加动画状态类
.signUp {
  .formsContainer {
    transform: translateX(-50%);
  }

  .switchContainer {
    transform: translateX(-100%);
  }

  .switchPanel {
    transform: translateX(0);
  }
}
